//游戏资料
var _GDMoveDone = false;//目前是否已经移动
var _GDAttackDone = false;//目前是否已经攻击或施法
var _GDNowMenu = "";//目前是否处于菜单
var _GDStateChess = null;//当前状态栏棋子
var _GDWindow = "";//目前窗口状态
var _GDselect;//当前选定的棋子
var _UID;//载入棋子计数器
var _GDNowChess = null;//当前移动的棋子
var _GDNowSkill = null;//当前拖动的技能
var _GDNowSkillPosition = null;//当前拖动的技能位置

var _GDWin = false;
var _GDFail = false;

var _GDway = new Array();
var _GDChessList = new Array();//所有棋子的列表
var _GDThisTurnNoMoveList = new Array();//未移动棋子的列表
var _GDThisTurnDelayList = new Array();//延迟棋子的列表

function initializationGameData(){
	_UID = 0;
	_GDNowMenu = "";
	_GDWindow = "";
	_GDMoveDone = false;
	_GDAttackDone = false;
	_GDStateChess = null;
	_GDNowChess = null;
	_GDselect = null;
	_GDNowSkill = null;
	_GDNowSkillPosition = null;
	_GDway = new Array();
	_GDChessList = new Array();
	_GEEventList = new Array();
	_GDThisTurnDelayList = new Array();
	_GDThisTurnNoMoveList = new Array();
	_GDWin = false;
	_GDFail = false;
	
	_GEEventing = false;
	_GAList = new Array();
	_GASpriteList = new Array();
	_GADone = true;
};

function GDposition(x,y){
	this.x = x;
	this.y = y;
};

function GDWay(x,y,no){
	this.x = x;
	this.y = y;
	this.no = no;
	this.sprite = null;
};

function GDPositionEqual(P1,P2){
	if(P1.x==P2.x&&P1.y==P2.y)
		return true;
	return false;
};